/* miniprogram/pages/order/order.wxss */
@import '../../app.less';

// 用户未登录时的样式
.container_logout {
    position: relative;
    height: 100vh;

    .logout {
        height: 70%;
        width: 100%;
    }

    .tip {
        position: absolute;
        white-space: nowrap;
        top: 65%;
        left: 50%;
        transform: translate(-50%, 0);
        color: #8F8F8F;
    }

    .login {
        position: absolute;
        white-space: nowrap;
        top: 75%;
        left: 50%;
        transform: translate(-50%, 0);
        color: #51E0F6;
        background-color: #fff;
    }
}

// 用户登录后的样式
.container_login {
    width: 100vw;
    height: 100vh;

    // 没有数据时
    .noOrder {
        height: 100%;
        width: 100%;
        line-height: 100vh;
        text-align: center;
        color: #ccc;
    }

    // 有数据时
    .orderBox {
        height: 100%;
        width: 100%;
        padding: 20rpx;
        box-sizing: border-box;
        background-color: #fff;

        .order {
            box-sizing: border-box;
            padding: 20rpx 30rpx;
            width: 100%;
            height: auto !important;
            background-color: #fff;
            border-radius: 20rpx;
            box-shadow: 2rpx 2rpx rgba(0, 0, 0, .1);
            background-color: #fcfcfc;
            margin-bottom: 20rpx;

            .top {
                display: flex;
                flex-direction: column;
                

                .goods {
                    box-sizing: border-box;
                    font-size: 28rpx;
                    display: flex;
                    justify-content: space-between;
                    .goodsImg {
                        width: 120rpx;
                        height: 120rpx;
                    }
                    .goodsTitle{
                    padding-left: 40rpx;
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    .remarks{
                        font-size: 20rpx;
                        height: 70rpx;
                        overflow: hidden;
                        -webkit-line-clamp: 2; /*设置子元素超过多少行被隐藏*/
                        display: -webkit-box;/*必须设置为-webkit-inline-box或-webkit-box*/
                        -webkit-box-orient: vertical;/*设置子元素的排列方式 (从上往下),当子元素只为文本时无明显效果*/
                        color: #ccc;
                    }
                    }
                    .completed {
                        padding-top: 10rpx;
                        min-width: 80rpx;
                        color: #3a86ff;
                        text-align: center;
                        font-size: 20rpx;
                    }
                    .serving {
                        padding-top: 10rpx;
                        min-width: 80rpx;
                        color: #f94144;
                        text-align: center;
                        font-size: 20rpx;
                    }
                }

                .priceBox {
                    display: flex;
                    justify-content: flex-end;
                    font-size: 24rpx;

                    .price {
                        margin-left: 10rpx;
                        .count,.int{
                            font-size: 22rpx;
                        }
                        .cPrice,.float{
                            font-size: 18rpx;
                        }
                        &.countPrice{
                            color: #ccc;
                        }
                    }

                   

                   
                }
            }

            // 下半部分操作栏
            .bottom {
                margin-top: 20rpx;
                width: 100%;
                display: flex;
                justify-content: flex-end;
                align-items: center;
                // 服务地址
                .userAddress{
                    font-size: 22rpx;
                    white-space: nowrap;
                    flex: 1;
                    overflow: hidden;
                    // 文字溢出隐藏
                    text-overflow: ellipsis;
                }
                .item {
                    font-size: 22rpx;
                    padding: 0rpx 20rpx;
                    border: 1px solid #333;
                    border-radius: 50rpx;
                }

                .delete {
                    color: #f00;
                    border-color: #f00;
                }

                .ok {
                    color: #52b788;
                    border-color: #52b788;
                    margin-left: 20rpx;
                }
            }
        }
    }
}